package com.springcloud.controller;

import com.springcloud.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cons")
public class RibbonController {

    @Autowired
    private HomeService homeService ;

    @RequestMapping("/home")
    public String home(@RequestParam String name) {
        return homeService.homeSer(name) ;
    }

}
